<?php

require __DIR__ . '/../bootstrap/autoload.php';

require __DIR__ . '/../bootstrap/start.php';

kernel::boot();

function ff($a = false) {
	header('Content-Type: text/html;charset=utf-8');
	echo "<pre>";
	$a ? var_export($a) : var_dump(date('Y-m-d H:i:s'));
	exit;
}

function jj($a = false) {
	header('Content-Type: text/html;charset=utf-8');
	echo $a ?  json_encode((object)$a) : date('Y-m-d H:i:s');
	exit;
}

function wt($content = '',$exit = true) {
	if($content){
		if(!is_string($content)) $content = date('Y-m-d H:i:s') . json_encode((object)$content);
		$file = __DIR__."/../test_write.txt";    // 写入的文件
		file_put_contents($file,$content);
	}
	if($exit){
		exit;
	}
}